﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;
using DTO;

namespace BLL
{
	public class TOAMAUTHUOCBUS
	{
		public static DataTable GetListMT()
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.GetListMT();
		}
		public static List<TOAMAUTHUOC> GetListMTs()
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.GetListMTs();
		}
		public static List<TOAMAUTHUOC> Find(TOAMAUTHUOC tm)
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.Find(tm);
		}
		public static List<CT_TOAMAUTHUOC> GetListCTTMbyTMIDS(TOAMAUTHUOC tm)
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.GetListCTTMbyTMIDS(tm);
		}
		public static DataTable GetListCTTMbyTMID(TOAMAUTHUOC tm)
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.GetListCTTMbyTMID(tm);
		}
		public static TOAMAUTHUOC GetTOAMAU(TOAMAUTHUOC tm)
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.GetTOAMAU(tm);
		}
		public static String CreateNewID()
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.CreatenewId();
		}
		public static bool INSERT(TOAMAUTHUOC tm, List<CT_TOAMAUTHUOC> ct)
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.INSERT(tm, ct);
		}
		public static bool UPDATE(TOAMAUTHUOC tm, List<CT_TOAMAUTHUOC> add, List<CT_TOAMAUTHUOC> del)
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.UPDATE(tm, add, del);
		}
		public static bool DELETE(TOAMAUTHUOC tm, List<CT_TOAMAUTHUOC> lct)
		{
			TOAMAUTHUOCDAO b = new TOAMAUTHUOCDAO();
			return b.DELETE(tm, lct);
		}
	}
}
